import { useNavigate } from "react-router-dom";
import "./Navbar.css";
import { LeftOutline } from "antd-mobile-icons";
function MyNavbar(props: any) {
  const { title } = props;
  const navigate = useNavigate();
  return (
    <div>
      <div className="Navbar">
        <LeftOutline className="Navbar-icon" onClick={()=>navigate(-1)}/>
        <span className="Navbar-title">{title}</span>
      </div>
    </div>
  );
}

export default MyNavbar;
